package com.po;


public class InformationInfo implements Comparable<InformationInfo>{
	private String excelid;
	private String info_id;//知识ID
	private String user_id;//用户ID
	private String user_name;
	private String info_name;//篇名
	private String info_author;//作者
	private String info_company;//作者单位
	private String info_bm;//发布部门
	private String info_time;//发布时间
	private String info_uptime;//发布时间
	private String info_download;//下载量
	private String info_browser;//浏览量
	private String info_status;//状态
	private String info_level;//是否VIP
	private String info_abstract;//摘要
	private String info_keyword;//关键字
	private String library;//库
	private String info_tag;//标签
	private String first_class;
	private String info_url;//
	private String info_wh;//文号
	private String info_source;
	private String info_tjz;
	private double similarity;
	private int page;
	private int rows;
	
	public String getExcelid() {
		return excelid;
	}
	public void setExcelid(String excelid) {
		this.excelid = excelid;
	}
	public String getInfo_id() {
		return info_id;
	}
	public void setInfo_id(String info_id) {
		this.info_id = info_id;
	}
	public String getUser_id() {
		return user_id;
	}
	public void setUser_id(String user_id) {
		this.user_id = user_id;
	}
	
	public String getUser_name() {
		return user_name;
	}
	public void setUser_name(String user_name) {
		this.user_name = user_name;
	}
	public String getInfo_name() {
		return info_name;
	}
	public void setInfo_name(String info_name) {
		this.info_name = info_name;
	}
	public String getInfo_author() {
		return info_author;
	}
	public void setInfo_author(String info_author) {
		this.info_author = info_author;
	}
	public String getInfo_company() {
		return info_company;
	}
	public void setInfo_company(String info_company) {
		this.info_company = info_company;
	}
	public String getInfo_bm() {
		return info_bm;
	}
	public void setInfo_bm(String info_bm) {
		this.info_bm = info_bm;
	}
	
	public String getInfo_time() {
		return info_time;
	}
	public void setInfo_time(String info_time) {
		this.info_time = info_time;
	}
	
	public String getInfo_uptime() {
		return info_uptime;
	}
	public void setInfo_uptime(String info_uptime) {
		this.info_uptime = info_uptime;
	}
	public String getInfo_download() {
		return info_download;
	}
	public void setInfo_download(String info_download) {
		this.info_download = info_download;
	}
	public String getInfo_browser() {
		return info_browser;
	}
	public void setInfo_browser(String info_browser) {
		this.info_browser = info_browser;
	}
	public String getInfo_status() {
		return info_status;
	}
	public void setInfo_status(String info_status) {
		this.info_status = info_status;
	}
	public String getInfo_level() {
		return info_level;
	}
	public void setInfo_level(String info_level) {
		this.info_level = info_level;
	}
	public String getInfo_abstract() {
		return info_abstract;
	}
	public void setInfo_abstract(String info_abstract) {
		this.info_abstract = info_abstract;
	}
	public String getInfo_keyword() {
		return info_keyword;
	}
	public void setInfo_keyword(String info_keyword) {
		this.info_keyword = info_keyword;
	}
	public String getLibrary() {
		return library;
	}
	public void setLibrary(String library) {
		this.library = library;
	}
	
	public String getInfo_tag() {
		return info_tag;
	}
	public void setInfo_tag(String info_tag) {
		this.info_tag = info_tag;
	}
	public String getFirst_class() {
		return first_class;
	}
	public void setFirst_class(String first_class) {
		this.first_class = first_class;
	}
	public String getInfo_url() {
		return info_url;
	}
	public void setInfo_url(String info_url) {
		this.info_url = info_url;
	}
	public String getInfo_source() {
		return info_source;
	}
	public void setInfo_source(String info_source) {
		this.info_source = info_source;
	}
	public int getPage() {
		return page;
	}
	public void setPage(int page) {
		this.page = page;
	}
	public int getRows() {
		return rows;
	}
	public void setRows(int rows) {
		this.rows = rows;
	}
	public String getInfo_wh() {
		return info_wh;
	}
	public void setInfo_wh(String info_wh) {
		this.info_wh = info_wh;
	}
	public String getInfo_tjz() {
		return info_tjz;
	}
	public void setInfo_tjz(String info_tjz) {
		this.info_tjz = info_tjz;
	}
	public double getSimilarity() {
		return similarity;
	}
	public void setSimilarity(double similarity) {
		this.similarity = similarity;
	}
	@Override
	public int compareTo(InformationInfo o) {
		// TODO Auto-generated method stub
		double i = this.getSimilarity() - o.getSimilarity();
		if(i==0)
			return 0;
		else if(i>0)
			 return 1;
		return -1;
	}
	
}
